﻿namespace EFS.RC.CommunicatorContext.Operators
{
	public partial class CoversationInfo : EFS.RC.CommunicatorContext.Common.Pages.Controls.Control 
	{
		public CoversationInfo()
		{
			InitializeComponent();
		}

		/// Load conversation info
		public void LoadConversationInfo(
			EFS.RC.CC.Messages.Communicator.Lync.Conversation.Info convInfo)
		{
			// conversation length
			labelConvLength.Content = EFS.RC.CommunicatorContext.Common.Functions.TimeSpanDescription(convInfo.Length);

			// conversation length
			labelDialDirection.Content = convInfo.IsDialOut ? "OUT" : "IN"; ;

			// music status
			labelMusicStatus.Content = convInfo.IsMusicOn ? "ON" : "OFF";

			//on hold status
			labelConversationOnHold.Content = convInfo.IsOnHold ? "YES" : "NO";
		}
	}

}